package com.ruoyi.feign.client;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.security.annotation.RequireChannel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;
//归属的中心
@FeignClient("ruoyi-system")
public interface SysUserClient {
//    @RequireChannel("1")
    @GetMapping(value = { "/user/channel/{userId}" })
    public AjaxResult getInfoNeedChannel( @RequestHeader(value = "channelId") String channelId,@PathVariable(value = "userId", required = false) Long userId);

}
